<template>
  <div id="app">
    <nav-header :seller="seller"></nav-header>
    <tab></tab>
    <router-view/>
  </div>
</template>

<script>
import '@/assets/css/base.scss'
import NavHeader from '@/components/header/Header'
import Tab from '@/components/tab/Tab'
export default {
  name: 'app',
  data() {
    return {
      seller: '',
    }
  },
  components: {
    NavHeader,
    Tab
  },
  mounted() {
    this.$http.get('/api/seller').then(response => {
      let result = response.body
      if(result.statusCode == 200) {
        this.seller = result.data
        console.log(this.seller)
      }
    })
  }
}
</script>
